package com.dsr.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * (Orders)实体类
 *
 * @author dsr
 * @since 2020-09-19 09:30:00
 */

@Getter
@Setter
@ApiModel("(Orders)实体类")
public class Orders implements Serializable {
    private static final long serialVersionUID = 449350111867875844L;
    @Id
    private String id;

    private String blessing;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createDate;

    private Integer del;

    private String discountId;

    private String distributeTime;

    private String flowerId;

    private String gitId;

    private boolean hasVip;

    private Integer number;

    private Double price;

    private String remark;

    /**
     * 0未确认, 1 制作中  2 已经发货待确认,3确认收货/等待评价,4已经评价/交易完成  5卖家取消,6买家取消-->
     */
    private Integer state;

    private String userId;

    private String address;

    private String addressInfo;

    private String userIphone;

    private String userName;
    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date queryDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date updateDate;


}